package com.cgy.utils.net.http.config;

import com.cgy.utils.net.http.exception.IThrowableHandler;
import lombok.Getter;
import lombok.Setter;
import okhttp3.FormBody;
import okhttp3.Interceptor;
import okhttp3.RequestBody;

import javax.net.ssl.SSLSocketFactory;

/**
 * @author CHTK
 */
@Getter
@Setter
public class RequestConfig {
    /**
     *
     */
    private FormBody.Builder formBody;

    private RequestBody requestBody;

    private long connectTimeout = 10;
    private long readTimeout = 20;
    private IThrowableHandler throwable;
    private Interceptor interceptor;
    private SSLSocketFactory sslSocketFactory;


    public FormBody.Builder getFormBody() {
        return formBody;
    }

    public void setFormBody(FormBody.Builder formBody) {
        this.formBody = formBody;
    }
}
